import { getResPath } from '@/utils/cimup';

export default (layer: any) => {
  const { positions, imageUrl } = layer;
  return {
    data: {
      positions,
      dataSourceUrl: getResPath(imageUrl),
      scale: 100,
      rotation: [0, 0, 0],
      minimumPixelSize: 128,
      rotateZ: true,
      rotateZAngle: 6,
      shaderName: 'unlit',
    },
  };
};
